home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / pm / printer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.2 KB  |  60 lines

  1. #ifndef _PRINTER_H_
  2. #define _PRINTER_H_
  3.  
  4. #define INCL_SPLDOSPRINT
  5. #ifndef _PRESENTATIONSPACE_H_
  6. #include <pm/presentationspace.h>
  7. #endif
  8.  
  9. #ifndef _STDAPP_H_
  10. #include <pm/stdapp.h>
  11. #endif
  12.  
  13. #ifndef _STDDIALOG_H_
  14. #include <pm/stddialog.h>
  15. #endif
  16.  
  17. @interface Printer : PresentationSpace <Archiving>
  18. {
  19.   HAB          hab;
  20.   id           setupDialog;
  21.  
  22.   HDC          printerDeviceContext;
  23.   PRQINFO3    *queueInformation;
  24.   ULONG        defaultPrinterIndex;
  25.   ULONG        numberOfPrintingQueues;
  26.   HCINFO       formInformation;
  27.   DEVOPENSTRUC deviceOpenStructure;
  28. }
  29.  
  30. -init;
  31. - initForApp: (StdApp *) anApp;
  32. - free;
  33.  
  34. - beginSpool: (char *) spoolTitle appTitle: (char *) appTitle;
  35. - endSpool;
  36. - newPage;
  37.  
  38. - printerSetup: sender;
  39.  
  40. - setSetupDialog: aSetupDialog;
  41. - setupDialog;
  42. - jobProperties: sender;
  43. - setDefault;
  44.  
  45. // form definition
  46. - (LONG) widthInPels;
  47. - (LONG) widthInMm;
  48. - (LONG) heightInPels;
  49. - (LONG) heightInMm;
  50.  
  51. -createPrinterObject;
  52. /* -------------------------- Archiving --------------------------- */
  53. -initializeObjectWithHab: (HAB) aHab;
  54. -read: (TypedStream *) aStream;
  55. -write: (TypedStream *) aStream;
  56.  
  57. @end
  58.  
  59. #endif
  60.